package behavioral.command.dataProc.objs;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Paper {

    private String title; // 题目
    private Date publishDate; // 日期
    private List<Author> authors; // 作者￿

    public Paper() {
        authors = new ArrayList<>();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public List<Author> getAuthors() {
        return authors;
    }

    public void setAuthors(List<Author> authors) {
        this.authors = authors;
    }

    @Override
    public String toString() {
        return "Paper{" +
                "title='" + title + '\'' +
                ", publishDate=" + publishDate +
                ", authors=" + authors +
                '}';
    }
}
